package cn.zcib.film.service.impl;

import cn.zcib.film.anno.Record;
import cn.zcib.film.bean.SysMenu;
import cn.zcib.film.bean.vo.SysMenuVO;
import cn.zcib.film.mapper.SysMenuMapper;
import cn.zcib.film.service.SysMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysMenuServiceImpl implements SysMenuService {
    @Resource
    private SysMenuMapper sysMenuMapper;
    @Override
    public List<SysMenu> findMenuList(SysMenuVO vo) {
        return sysMenuMapper.findMenuList(vo);
    }

    @Override
    public int insertMenu(SysMenu menu) {
        return sysMenuMapper.insertMenu(menu);
    }

    @Override
    public int updateMenu(SysMenu menu) {
        return sysMenuMapper.updateMenu(menu);
    }

    @Override
    public int delMenuById(Integer id) {
        return sysMenuMapper.delMenuById(id);
    }

    @Override
    public Integer checkMenuHasChild(Integer id) {
        return sysMenuMapper.checkMenuHasChild(id);
    }
}
